Headcount & Workforce Optimization - The General Framework